import { Global } from "../global/Global";
//class Application
// did
export class Application /* flash.display.Sprite */ {
  constructor() {
    // 
    // if (stage)
    // {
    //     this.init();
    // }
    // else
    // {
    //     this.addEventListener(flash.events.Event.ADDED_TO_STAGE, this.init);
    // }
    // return;
  }

  /* internal  */ init(arg1: any /* flash.events.Event */ = null): void {
    // Global.instance.initStage(this.stage);
    Global.application = this;
    this.initApp();
    return;
  }

  protected initApp(): void {
    return;
  }
}
